Objects
Flow-Wing supports objects.
type Person = {
name: str,
age: int
}
var alice: Person = { name: "Alice", age: 20 }
print(alice.name + " " + alice.age)
Output:
Alice 20
Flow-Wing supports objects.
type Person = {
name: str,
age: int
}
var alice: Person = { name: "Alice", age: 20 }
print(alice.name + " " + alice.age)
Output:
Alice 20